<%-- 
    Document   : inc_head
    Created on : Jan 9, 2013, 12:14:27 AM
    Author     : matt
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div class="navbar navbar-inverse navbar-fixed-top"> <!-- navbar-fixed-top => rajouter 40px de padding dans body -->
    <div class="navbar-inner">
        <div class="container">

	    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
	    </a>
	    <p class="brand">Gestion des absences des étudiants de l'INSA de Toulouse</p>

	    <div class="nav-collapse collapse">
		<ul class="nav">
		    <li class="active"><a href="http://localhost:8084/WebTest/">Project Home</a></li>
		    
		</ul>
		
		<c:if test="${ !empty sessionScope.sessionWebuser }">
		    <ul class="nav pull-right">
			<li class="dropdown">
			    <a href="" class="dropdown-toggle" data-toggle="dropdown">Logged in as <b>${ sessionScope.sessionWebuser.login }</b> <b class="caret"></b></a>
			    <ul class="dropdown-menu">
				<li>email : ${ sessionScope.sessionWebuser.email }</li>
				<li>nom : ${ sessionScope.sessionWebuser.nom }</li>
				<li>prenom : ${ sessionScope.sessionWebuser.prenom }</li>
				<li>type : ${ sessionScope.sessionWebuser.typeString }</li>
				<li>affectation : ${ sessionScope.sessionWebuser.affectation }</li>
				<li>primaryKey : ${ sessionScope.sessionWebuser.primaryKey }</li>
			    </ul>
			</li>
			<li><a href="http://localhost:8084/WebTest/deconnection">Log out</a></li>
		    </ul>
		    <!--<p style="margin-left: 15px;" class="navbar-text pull-right"></p>-->
		</c:if>
	    </div><!--/.nav-collapse -->
        </div>
    </div>
</div>